package com.ruoyi.project.optimize.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.optimize.mapper.ProjectOptimizeMapper;
import com.ruoyi.project.optimize.domain.ProjectOptimize;
import com.ruoyi.project.optimize.service.IProjectOptimizeService;

/**
 * 改进项目Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-18
 */
@Service
public class ProjectOptimizeServiceImpl implements IProjectOptimizeService 
{
    @Autowired
    private ProjectOptimizeMapper projectOptimizeMapper;

    /**
     * 查询改进项目
     * 
     * @param id 改进项目主键
     * @return 改进项目
     */
    @Override
    public ProjectOptimize selectProjectOptimizeById(String id)
    {
        return projectOptimizeMapper.selectProjectOptimizeById(id);
    }

    /**
     * 查询改进项目列表
     * 
     * @param projectOptimize 改进项目
     * @return 改进项目
     */
    @Override
    public List<ProjectOptimize> selectProjectOptimizeList(ProjectOptimize projectOptimize)
    {
        return projectOptimizeMapper.selectProjectOptimizeList(projectOptimize);
    }

    /**
     * 新增改进项目
     * 
     * @param projectOptimize 改进项目
     * @return 结果
     */
    @Override
    public int insertProjectOptimize(ProjectOptimize projectOptimize)
    {
        return projectOptimizeMapper.insertProjectOptimize(projectOptimize);
    }

    /**
     * 修改改进项目
     * 
     * @param projectOptimize 改进项目
     * @return 结果
     */
    @Override
    public int updateProjectOptimize(ProjectOptimize projectOptimize)
    {
        return projectOptimizeMapper.updateProjectOptimize(projectOptimize);
    }

    /**
     * 批量删除改进项目
     * 
     * @param ids 需要删除的改进项目主键
     * @return 结果
     */
    @Override
    public int deleteProjectOptimizeByIds(String[] ids)
    {
        return projectOptimizeMapper.deleteProjectOptimizeByIds(ids);
    }

    /**
     * 删除改进项目信息
     * 
     * @param id 改进项目主键
     * @return 结果
     */
    @Override
    public int deleteProjectOptimizeById(String id)
    {
        return projectOptimizeMapper.deleteProjectOptimizeById(id);
    }
}
